package com.learn.micro_mall.service.request.coupon;

import com.learn.micro_mall.service.request.BaseRequest;
import com.sun.istack.internal.NotNull;
import lombok.Data;

@Data
public class CouponCreateRequest extends BaseRequest {
    private static final long serialVersionUID = 8823382996072723314L;

    /**
     * 优惠券名字
     */
    @NotNull
    private String couponName;

    /**
     * 总共发放数量
     */
    @NotNull
    private Long totalNum;

    /**
     * 领取规则
     */
    private ReceiveRuleRequest receiveRuleRequest;

    /**
     * 使用门槛
     */
    private UseThresholdRequest useThresholdRequest;

    /**
     * 优惠内容
     */
    private DiscountsRequest discountsRequest;

    /**
     * 优惠券有效时间
     */
    private ValidTimeRangeRequest validTimeRangeRequest;
}
